﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YmtAuth.Domain.EventHistory;
using YmtAuth.Repository.Register;

namespace YmtAuth.Repository.YmtAuthDomainRepository.RegisterEntity
{
    public class UserRegisterEventMappingConfigure : RegisterEntityMappingConfigure
    {
        public override EntityMappingConfigure RegisterEntity()
        {
            return new EntityMappingConfigure
            {
                MappType = typeof(UserRegisterEvent),
                ToDatabase = "Ymt_LoginHistory_201402",
                ToCollection = string.Format("UserReg_{0}", DateTime.Now.ToString("yyyyMM"))
            };
        }
    }
}
